﻿using System.Collections.Generic;
using ZilLion.Service.Core.DapperWrapper;
using ZilLion.Service.TaskPlatform.Domain.Entity;

namespace ZilLion.Service.TaskPlatform.Domain.Respository.Interface
{
    public interface INodeRunMonitorRespository
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="entity"></param>
        void AddPerformanceMonitorInfo(NodeRunMonitorInfoEntity entity, UnitOfWork unit = null);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity"></param>
        void MotifyPerformanceMonitorInfo(NodeRunMonitorInfoEntity entity,UnitOfWork unit=null);


        /// <summary>
        /// 获取所有节点的信息
        /// </summary>
        /// <returns></returns>
        IEnumerable<NodeRunMonitorInfoEntity> GetAllNodeMonitorInfo();
        /// <summary>
        /// 获取对应节点ID 的监控信息
        /// </summary>
        /// <param name="nodeid"></param>
        /// <returns></returns>
        NodeRunMonitorInfoEntity GetNodeMonitorInfoById(string nodeid);
    }
}